package com.heima.verification_code_work;

import java.util.Scanner;

public class LoginTest {
    public static void main(String[] args) {


        String loginCode = Code.getLoginCode();
        System.out.println(loginCode);
        System.out.println("老登,想登陆先输入验证码");
        Scanner sc = new Scanner(System.in);
        String code = sc.nextLine();
        if(code.equals(loginCode)) {
            System.out.println("登录成功");
        }else {
            System.out.println("瞎搞");
        }
    }
}
